It is derived from morphine by elimination, rearrangement, and salt formation. Add morphine to phosphoric acid, heat in water bath, and the internal temperature does not exceed 50 ℃. Stir until fully dissolved. Cooling is placed in an absorption tank, and hydrogen chloride gas is introduced until the reaction liquid weighs 2.5 times the amount of morphine. Move it into the reaction tank, continue to introduce hydrogen chloride gas, and heat it to 124-126 ℃ at the same time, and heat it for 3 hours. Put the reaction solution into ice water, cool to below 20°C, and slowly add sodium carbonate under stirring until the gel is completely precipitated. Divide the jelly into concentrated hydrochloric acid, dissolve the jelly hydrochloride in boiling water, then add the sodium sulfite solution, and extract it twice with dichloroethane-isopropanol mixed solvent. Concentrated hydrochloric acid was added to the extract under stirring to precipitate the crude product. The crude product is soaked in concentrated hydrochloric acid, dissolved in hot distilled water, decolorized with activated carbon, vacuum drying and other steps to obtain the finished product.